#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
@file_name: running_a_coroutine.py
@date: 2025-07-23 15:31
@author: Falling Snow
@desc: 运行一个coroutine
"""

import asyncio


async def coroutine_add_one(number: int) -> int:
    return number + 1


if __name__ == '__main__':
    # 这里是传递coroutine, 而不是函数对象
    result = asyncio.run(coroutine_add_one(1))

    print(result)
